package com.admin.scroller.photoorvideo.beans;

import android.graphics.Bitmap;

import java.io.Serializable;

public class LocalPhoto implements Serializable {

    private String path;//视屏封面

    private String name;

    private String data;//日期

    private boolean selected;

    private boolean isVideo;//是否为视屏

    private String videoUrl;//视屏的路径

    private String videoDecation;//视频的时长

    private Bitmap firstBitmap;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public void changeSelected(){
        this.selected=!selected;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public boolean isVideo() {
        return isVideo;
    }

    public void setVideo(boolean video) {
        isVideo = video;
    }

    public String getVideoDecation() {
        return videoDecation;
    }

    public void setVideoDecation(String videoDecation) {
        this.videoDecation = videoDecation;
    }

    public Bitmap getFirstBitmap() {
        return firstBitmap;
    }

    public void setFirstBitmap(Bitmap firstBitmap) {
        this.firstBitmap = firstBitmap;
    }

    @Override
    public String toString() {
        return "LocalPhoto{" +
                "path='" + path + '\'' +
                ", name='" + name + '\'' +
                ", data='" + data + '\'' +
                '}';
    }
}
